import express from 'express';
import userRouter from './user';
import postsRouter from "./posts";
import categoriesRouter from "./categories";
import rssRouter from "./rss";
import mailRouter from "./mail";

const router = express.Router();
// 统一挂载

/* ---------------------------------- API 渲染 ---------------------------------- */
router.use("/users", userRouter);

router.use("/posts", postsRouter);

router.use('/categories', categoriesRouter);

router.use('/rss', rssRouter);

router.use("/mail", mailRouter)

export default router;
